<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<link href="${pageContext.request.contextPath}/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<c:choose>
	<c:when test="${empty reader }">
	您的操作有误
	</c:when>
	<c:otherwise>
	
<form action="${pageContext.request.contextPath}/reader" onsubmit="return beforeSub()">
	<input type="hidden" name="flag" value="doEdit">
	<input type="hidden" name="id" value="${reader.id }">
	<table  class="table table-bordered">
		<tr>
			<th colspan="2">读者信息修改</th>
		</tr>
		<tr>
			<td width="150px">姓名</td>
			<td><input type="text" value="${reader.userName}"  class="form-control" name="userName" placeholder="请输入您的姓名" ></td>
		</tr>

		<tr>
			<td width="150px">中文名</td>
			<td><input type="text" value="${reader.userDisplayName}"  class="form-control" name="userDisplayName" placeholder="请输入您的姓名" ></td>
		</tr>
		
		<tr>
			<td>其他</td>
			<td>
				<textarea name="temp"  class="form-control">${reader.temp }</textarea>
			</td>
		</tr>
		<tr>
			<td align="center" colspan="2">
				<input type="submit" class="btn btn-secondary" value="点击提交">
				&nbsp;
				<input type="button" class="btn btn-secondary" onclick="javascript:history.go(-1)" value="返回">
			</td>
		</tr>
	</table>
</form>
<script type="text/javascript">
</script>
</c:otherwise>
</c:choose>
</body>
</html>